<%@ page contentType="text/html; charset=euc-kr"%>
<%@ page import="java.util.List" %>
<%@ page import="uit.comm.util.StringUtil" %>
<%@ page import="uit.upis.model.LegalBasis" %>
<%
	String cdList  = StringUtil.nvl((String)request.getAttribute("cdList"));
	String gubun   = StringUtil.nvl((String)request.getAttribute("gubun"));
	List basisList = (List)request.getAttribute("basisList");
	
	if ( cdList != null ) {
		String[] cdNameList = StringUtil.getTokenArray(cdList, "|");
		for (int i=0;i<cdNameList.length;i++)
			System.out.println("cdNameList["+i+"]="+cdNameList[i]);
	}
%>
<form name="parcelRuleFrm">
<input type="hidden" name="pnu" value="<%=StringUtil.nvl((String)request.getAttribute("pnu"))%>">
<input type="hidden" name="cdList" value="<%=cdList%>">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="3" height="3" background="./images/main/boxLeft10.gif"></td>
		<td width="100%" height="3" background="./images/main/boxTop10.gif"></td>
		<td width="3" height="3" background="./images/main/boxLeft10.gif"></td>
	</tr>
	<tr>
		<td width="3" background="./images/main/boxMdl_Left10.gif"><img src="./images/main/boxMdl_Left10.gif"></td>
		<td align="left" valign="top">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="26" valign="bottom">
						<img src="./images/main/blit_greenDot.gif" alt="" hspace="5" align="absmiddle" />
						<select name="gubun" onChange="getParceRuleInfo();" class="sbox01">
<%
	if ( basisList != null && basisList.size() > 0 ) {
		for (int i=0;i<basisList.size();i++) {
			LegalBasis basis = (LegalBasis)basisList.get(i);
%>
						<option value="<%=basis.getGubun()%>" <%=gubun.equals(basis.getGubun()) ? "selected":""%>><%=basis.getName()+( basis.getLaw() == null ? "":" : ")+StringUtil.nvl(basis.getLaw())%></option>
<%
		}
	}
%>					
						</select>
					</td>
				</tr>
				<tr>
					<td align="left" valign="top">
					<div id="ruleBox"><%=StringUtil.setBr(StringUtil.nvl((String)request.getAttribute("limitList")))%>
					</div>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" background="./images/main/boxMdl_Right10.gif">&nbsp;</td>
	</tr>
	<tr>
		<td width="3" height="3" background="./images/main/boxLeft11.gif"></td>
		<td height="3" background="./images/main/boxBottom10.gif"></td>
		<td width="3" height="3" background="./images/main/boxRight11.gif"></td>
	</tr>
</table>
</form>